var page_super = require("page_obj");

function page_index() {
    this.setPageName("ui_index");
    this.setPageUrl("/ui/index");
    this.page_handler = function(req, res){
        res.writeHead(200, {"Content-Type": "text/html"});
        this.htmlbody = getHtmlBody(req, res);
        res.write(this.htmlbody);
    };

    function getHtmlBody(req, res) {
        var body = '';
        body += '<html>';
        body += '<head>';
        body += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
        body += '</head>';
        body += '<body>';
        body += '<H1> HELLO </H1>';
        body += '</html>';
        return body;
    }
}

page_index.prototype = new page_super.page_obj();

var _page_index = new page_index();
_page_index.addPage(_page_index);
